home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / steppenw.swf / scripts / DefineSprite_2168 / frame_38 / DoAction.as
Text File  |  2008-11-12  |  521b  |  20 lines

  1. if(_root.CacheSerpent.hitTest(_root.Meg._x,_root.Meg._y,true))
  2. {
  3.    set("/Variables:Vie",eval("/Variables:Vie") - 20);
  4.    if(eval("/Variables:Vie") < 0)
  5.    {
  6.       tellTarget("_root")
  7.       {
  8.          gotoAndStop("MegMeurt");
  9.          play();
  10.       }
  11.       set("/Variables:Vie",0);
  12.    }
  13.    setProperty("/Inventaire/BarreVie2/BarreVie3/Gage2", _width, eval("/Variables:GageLargeur") * (eval("/Variables:Vie") / 100));
  14.    tellTarget("_root.Sound")
  15.    {
  16.       gotoAndStop("MegCris");
  17.       play();
  18.    }
  19. }
  20.